<?php
namespace Fwadmin\Model;
use Think\Model;
class ManageModel extends Model{
	function checkPassword(){
		if(M('Manage') -> where(array('username' => I('username'),'password' => md5(I('oldpassword')))) -> find()){
			return true;
		}else{
			return false;
		}
	}
}